import request from '@/utils/request';

const home = {
  getZlMapByYear(type) {
    return request.get(`/cgzh/index/getZlMapByYear/${type}`)
  },
  getAllByPatentType(params) {
    return request.get('/cgzh/index/getAllByPatentType', {params})
  },
  getByPatentStatus(params) {
    return request.get('/cgzh/index/getByPatentStatus', {params})
  },
  getZlDeptMap(type) {
    return request.get(`/cgzh/index/getZlDeptMap/${type}`)
  },
  getAllCgCount(){
    return request.get(`/cgzh/index/getAllCgCount`)
  },
  getCountForService(){
    return request.get(`/cgzh/index/getCountForService`)
  },
  getAwardsCountByYear(){
    return request.get(`/cgzh/index/getAwardsCountByYear`)
  },
  getThesisCountByYear(){
    return request.get(`/cgzh/index/getThesisCountByYear`)
  },
  getTreatiseCountByYear(){
    return request.get(`/cgzh/index/getTreatiseCountByYear`)
  },
  getPerformanceCountByYear(){
    return request.get(`/cgzh/index/getPerformanceCountByYear`)
  },
  getSoftCountByYear(){
    return request.get(`/cgzh/index/getSoftCountByYear`)
  },
  getMethodCountByYear(){
    return request.get(`/cgzh/index/getMethodCountByYear`)
  },
  getThesisDeptMap(){
    return request.get(`/cgzh/index/getThesisDeptMap`)
  },
  getTreatiseDeptMap(){
    return request.get(`/cgzh/index/getTreatiseDeptMap`)
  },
  getSoftDeptMap(){
    return request.get(`/cgzh/index/getSoftDeptMap`)
  },
  getJxDeptMap(){
    return request.get(`/cgzh/index/getJxDeptMap`)
  },
  getPerformanceDeptMap(){
    return request.get(`/cgzh/index/getPerformanceDeptMap`)
  },
  getMethodDeptMap(){
    return request.get(`/cgzh/index/getMethodDeptMap`)
  },
  // 按论文级别
  getByThesisLevel(){
    return request.get(`/cgzh/index/getByThesisLevel`)
  },
  // 按奖项级别
  getAllByAwardLevel(){
    return request.get(`/cgzh/index/getAllByAwardLevel`)
  },
  // 按奖项种类
  getAllByAwardType(){
    return request.get(`/cgzh/index/getAllByAwardType`)
  },
  // 按奖项等级
  getAllByAwardGrade(){
    return request.get(`/cgzh/index/getAllByAwardGrade`)
  },
  // 按专著级别
  getByTreatiseLevel(){
    return request.get(`/cgzh/index/getByTreatiseLevel`)
  },
  // 按工法级别
  getByConstructMethodLevel(){
    return request.get(`/cgzh/index/getByConstructMethodLevel`)
  },

}

export default home;
